const arr = [[1, 2], [3, 4]];
const flat = arr.reduce((acc, cur) => acc.concat(cur), []);
// 结果：[1, 2, 3, 4]